// 新增页面上部表单的标题组件

import React from 'react';

import './index.less';

import {getColor} from '../../../../../../../hrpub/common/utils/utils';

export default (props) => {

    
    let type = props.type;
    let tmp = props.meta.getMeta();
    let {color, bgColor} = getColor()
    
    return (
        <div className="nc-bill-top-area add-new-page-title">
            <span 
                className="form-title-word"
                style={{
                    color: color,
                    backgroundColor: bgColor
                }}
            >
                {tmp[type].name}
            </span>
            <span className="form-title-dashed"></span>
        </div>
    );

}